#include <helpers\math\frustum.h>

namespace DelGE
{
	namespace Helpers
	{
		namespace Math
		{
			Frustum::Frustum()
			{
				this->planes[FrustumPlane_Left]		= Plane();
				this->planes[FrustumPlane_Right]	= Plane();
				this->planes[FrustumPlane_Top]		= Plane();
				this->planes[FrustumPlane_Bottom]	= Plane();
				this->planes[FrustumPlane_Near]		= Plane();
				this->planes[FrustumPlane_Far]		= Plane();
			}

			Frustum::~Frustum()
			{
			}

			void Frustum::SetPlane(DelGE_FrustumPlane ePlane, const Vector3& rNormal, float fDistanceFromOrigin)
			{
				this->planes[ePlane].SetNormal(rNormal);
				this->planes[ePlane].SetDistanceFromOrigin(fDistanceFromOrigin);
			}
		}
	}
}